package cc.catface.h2.paramobj;

import cc.catface.h2.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ParamObjDao {

    @Select("select * from user")
    List<User> selectAll();

    void paramObj(@Param("user") User user);
}
